<!-- 分割线组件 -->
<template>
  <div class="GfDivider">
    <div
      class="line"
      v-if="componentData.styles.lineIsShow"
      :style="{
        borderTopStyle: componentData.styles.lineStyle,
        borderTopColor: componentData.styles.lineColor
      }"
    ></div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'GfDivider',
  props: ['componentData']
})
</script>

<style lang="scss" scoped>
.GfDivider {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  .line {
    flex: 1;
    border-top: 1px solid #eee;
  }
}
</style>
